var application = function(){
    var components = new Array();
    components.push(new BaseComponent())
    return {
        getComponentCount(){
            return components.length;
        }
        registerComponent(){
            if(typeof component == 'object'){
                components.push(component)
            }
        }
    }
}
